/*
 * debug.h
 *
 *  Created on: Jul 11, 2011
 *      Author: alemao
 */

#ifndef DEBUG_H_
#define DEBUG_H_

#define DEBUG

#ifdef DEBUG
#define debug(format, args ...)									\
{																\
	printf("%s - %s(%d): ", __FILE__, __FUNCTION__, __LINE__);	\
	printf(format, ##args);										\
}
#endif /* DEBUG_H_ */
#else
#define debug(format, args ...)
#endif
